﻿@using QDT.Core.Domain
<div class="main_title">
    新增 <a href="@Url.Action("Index", "Admin")" class="back_list">返回列表</a></div>
<div class="blank5">
</div>
@using (Html.BeginForm("PostAdd","Admin"))
{
    <table class="form">
        <tr>
            <td colspan="2" class="topTd"></td>
        </tr>
        <tr>
            <td class="item_title">管理员帐号:</td>
            <td class="item_input"><input type="text" class="textbox require" name="Name"/></td>
        </tr>
        <tr>
            <td class="item_title">管理员密码:</td>
            <td class="item_input"><input type="password" class="textbox require" name="Password"/></td>
        </tr>
        <tr>
            <td class="item_title">管理员组:</td>
            <td class="item_input">
                <select name="RoleId" class="require" data-validate="list">
                    <option value="0">==未选择==</option>
                    @foreach(var role in ViewData["RoleSet"] as IList<Role>??new List<Role>())
                    {
                        <option value="@role.ID">@role.Name</option>
                    }
                </select>
            </td>
        </tr>
        <tr>
            <td class="item_title">状态:</td>
            <td class="item_input">
                <label>有效<input type="radio" name="IsEffect" value="true" checked="checked" /></label>
                <label>无效<input type="radio" name="IsEffect" value="false" /></label>
            </td>
        </tr>
        <tr>
		    <td class="item_title"></td>
		    <td class="item_input">
			    <!--隐藏元素-->
			    <input type="submit" class="button" value="新增" />
			    <input type="reset" class="button" value="重置" />
		    </td>
	    </tr>
        <tr>
            <td colspan="2" class="bottomTd"></td>
        </tr>
    </table>
}